<div id="divMain"><?=$menuloaitin?><br /><br /><br />
    <?php foreach($result as $item){ ?>
            <img src="<?=base_url('upload/tin/'.$item->hinh)?>" /><a href="<?=base_url('tintuc/chitiettin/'.$item->tenUrl.'.html')?>"><?=$item->ten?></a><br />
            <?=$item->tomtat?><br /><br />
    <?php } ?>
</div>